package Z007InterfaceAndExtends.O10inClass;

public class NoClassNAmeUserJuBuBL {}

abstract class HEro {
    public abstract void attack();
    public static void main(String[] args){
        // //在匿名类中使用外部的局部变量，外部的局部变量必须修饰为final
        final int damage = 5;
        HEro h = new HEro() {
            @Override
            public void attack() {
                System.out.println("新的进攻手段！" + damage);
            }
        };


        }
    }

